#include <stdio.h>
#include <unistd.h>

int main()
{
	pid_t pid;
	pid = fork();
	if(pid < 0)
	{
		fprintf(stderr,"fork failed !");
	}
	else if (0 == pid)
	{
		execlp("/bin/ls", "ls", NULL);
	}
	else
	{
		printf("child complete.\n");
	}

	return 0;
}
